//
//  NetCar.h
//  CarCare
//
//  Created by ileo on 14-9-19.
//  Copyright (c) 2014年 baozun. All rights reserved.
//

#import "NetEngine.h"
#import "CarModel.h"

@interface NetCar : NetEngine

+(void)addCar:(NSDictionary *)car success:(void (^)())success;
+(void)updateCar:(NSDictionary *)car success:(void (^)())success;
+(void)delCar:(NSInteger)carID success:(void (^)())success;
+(void)bindCar:(NSInteger)carID styleId:(NSInteger)styleId success:(void (^)())success;
+(void)carImgWithStyleID:(NSInteger)styleID success:(void (^)(NSString *image))success;
+(void)carListSuccess:(void (^)(NSArray<CarModel *> *cars))success fail:(void (^)())fail;//个人中心－－车辆列表




#pragma mark - old

//绑定设备
+(NetCar *)bindingDevice:(NSString *)device
          deviceCode:(NSString *)deviceCode;

//绑定车
+(NetCar *)bindingDevice:(NSString *)device
                CarStyle:(NSInteger)styleId
               vehicleId:(NSInteger)vehicleId;

//解绑设备
//+(NetCar *)unbindingDevice;

//获取车品牌
+(NetCar *)getCarBrandWithDrive:(NSString *)drive;

//获取车系列
+(NetCar *)getCarModelWithDrive:(NSString *)drive
                    brandID:(NSInteger)brandID;

//获取车型
+(NetCar *)getCarStyleWithDrive:(NSString *)drive
                    modelID:(NSInteger)modelID;

//获取车辆位置
+(NetCar *)locationWithImei:(NSString *)imei;

//设置发动机号
+(NetCar *)setCarEngineNo:(NSString *)engineNo;
//设置车架号
+(NetCar *)setCarVIN:(NSString *)vin;
//设置车牌号
+(NetCar *)setCarCarNo:(NSString *)carNo;
//获取设备状态
+ (NetCar *)getBindingDeviceState;
//获取车况使用
+ (NetCar *)getCarSituation;

@end
